package cn.walls1717.wallsmall.product.feign;

import cn.walls1717.wallsmall.product.vo.SkuHasStockVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 远程调用ware服务
 *
 * @author walls1717
 * @since 2022/11/01 20:59
 **/
@FeignClient("wallsmall-ware")
public interface WareFeignService {

    /**
     * 查询sku是否有库存
     *
     * @param skuIds skuId集合
     * @return skuId，是否有库存
     */
    @PostMapping("/ware/waresku/hasstock")
    List<SkuHasStockVO> getHasStock(@RequestBody List<Long> skuIds);
}
